//demo04.scss
/*循环和map*/
@use 'sass:map';
$colors: () !default; //()->map !default 1.系统会给一个默认值，2.可以修改的
$colors: map.deep-merge(
  (
    'white': #ffffff,
    'black': #000000,
    'primary': (
      'base': #409eff
    ),
    'success': (
      'base': #67c23a
    ),
    'warning': (
      'base': #e6a23c
    ),
    'danger': (
      'base': #f56c6c
    ),
    'error': (
      'base': #f56c6c
    ),
    'info': (
      'base': #909399
    )
  ),
  $colors
);
//取map值
$color-info: map.get($colors, 'info', 'base') !default; // #909399

//for循环
//js let types=["primary","success"]
$types: primary, success, warning, danger, error, info;
